<?php

use Illuminate\Routing\Router;

Admin::registerHelpersRoutes();

Route::group([
    'prefix'        => config('admin.prefix'),
    'namespace'     => Admin::controllerNamespace(),
    'middleware'    => ['web', 'admin'],
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('video', VideoController::class);
    $router->resource('student', StudentController::class);
    $router->resource('records/learn', LearnController::class);
    $router->resource('records/visit', VisitController::class);
});
